package com.yjzx.util.service.enums.file;

/**
 * @author yjzx
 * @date 2023/5/19
 * @Description 图片文件类型
 */
public enum PictureFileTypeEnum  implements FileType {
    /**
     * 图片
     */
    JPG(".jpg", "image/jpeg"),
    PNG(".png", "image/png"),
    GIF(".gif", "image/gif"),
    JPEG(".jpeg", "image/jpeg"),
    WEBP(".webp", "image/webp"),
    TIFF(".tiff", "image/tiff"),
    TIF(".tif", "image/tiff"),
    JFIF(".jfif", "image/jpeg"),
    JPE(".jpe", "image/jpeg"),
    PSD(".psd", "image/vnd.adobe.photoshop"),
    EPS(".eps", "image/x-eps"),
    CR2(".cr2", "image/x-canon-cr2"),
    CRW(".crw", "image/x-canon-crw"),
    DNG(".dng", "image/x-adobe-dng"),
    NEF(".nef", "image/x-nikon-nef"),
    RAF(".raf", "image/x-fuji-raf"),
    SR2(".sr2", "image/x-sony-sr2"),
    SRW(".srw", "image/x-sony-srw"),
    SVG(".svg", "image/svg+xml"),
    BMP(".bmp", "image/x-bmp"),
    // 图标文件
    ICO(".ico", "image/x-icon"),
    ;




    PictureFileTypeEnum(String extension, String mimeType) {
        this.extension = extension;
        this.mimeType = mimeType;
    }
    private final String extension;

    private final String mimeType;
    @Override
    public String getExtension() {
        return extension;
    }

    @Override
    public String getMimeType() {
        return mimeType;
    }


}
